<h3><%=link_to h('#'), article_url(article) %> <%=h article.title %></h3>

<%= article.body %>

<p class="tags">
<% if article.blog %>
Blog: <%=link_to h(article.blog.title), blog_url(article.blog.user, article.blog) %>,
<% end %>
Tags: <%= article.tags.map {|t| link_to t.name, tag_url(t) }.join(" ") %></p>

<p class="coda">Posted at <%= article.created_at.to_formatted_s(:short) %>
<% if article.user %> by <%= article.user.login %><% end %>	
  | <%= link_to pluralize(article.comments_count, 'comment'), article_url(article) %>
  <% if logged_in? && (current_user == article.user || current_user.login == 'admin') %>
  | <%= link_to "Edit", edit_article_url(article) %>
  | <%= link_to "Delete", article_url(article), :confirm => "Are you sure?", :method => :delete, :href => delete_article_url(article) %>
  <% end -%>
</p>
